<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateLogLogins  extends \App\Utils\CreateMigration
{
    function columns(Blueprint $table)
    {
        $table->unsignedBigInteger('user_id')->default(0)->comment('登录用户');
        $table->unsignedBigInteger('app_id')->default(0)->comment('登录终端');
        $table->string('ip')->default(0)->comment('登录IP');
        $table->string('token')->default(0)->comment('登录token');
    }

    function tableInfo()
    {
        return ['log__logins', '日志-登录日志'];
    }

}
